package cn.rubbit.bean;

import cn.rubbit.ApplicationContext;
import cn.rubbit.bean.entity.MybatisDependency;
import cn.rubbit.entity.Project;
import cn.rubbit.generate.ProjectGenerate;
import cn.rubbit.plug.Plugin;


public class MybatisPlugin extends Plugin{

	@Override
	public void run() {
		Project project=(Project)ApplicationContext.get(ApplicationContext.PJ_OBJECT);
		project.getDependencies().add(new MybatisDependency());
		ProjectGenerate.generate();
	}

	@Override
	public boolean isConflict() {
		return false;
	}

	@Override
	public boolean isReady() {
		return true;
	}


}
